package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Repository;

/**
 * @Author zhmwi
 * @Date 2021/7/21
 * @Dersciption
 */

public interface OrderService extends IService<OrderInfo> {
    //创建订单 并生成订单id的方法
    Long saveOrder(String scheduleId, Long patientId);

    //带条件带分页查询订单列表
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    //取消订单
    Boolean cancelOrder(Long orderId);

    //订单提醒
    void patientTips();
}
